
import 'package:flutter/material.dart';
import 'package:get/get.dart';

import 'home_page.dart';

class Welcome extends StatefulWidget {
  @override
  _WelcomeState createState() => _WelcomeState();
}

class _WelcomeState extends State<Welcome> {
  @override
  Widget build(BuildContext context) {
    final size = MediaQuery.of(context).size;
    final width = size.width;
    final height = size.height;
    return Container(
      height: double.infinity,
      width: double.infinity,
      color: Colors.white,
      child: Row(
        children: <Widget>[
          Container(
            padding: EdgeInsets.fromLTRB(0, height/2, 0, 0),
            color:Colors.black12,
            width: width/2,
            height: height,
            child: Row(
              children: <Widget>[
                GestureDetector(
                  child: Column(
                    children: <Widget>[
                      Image.asset("asset/other/car22.jpg",width:width/2,),
                    ],
                  ),
                  onTap: () {
                      Get.to(homePage());
                  },
                ),
              ],
            ),
          ),
          Container(
            padding: EdgeInsets.fromLTRB(0, height/2, 0, 0),
            color:Colors.black45,
            width: width/2,
            height: height,
            child: Row(
              children: <Widget>[
                GestureDetector(
                  child: Column(
                    children: <Widget>[
                      Image.asset("asset/other/car22.jpg",width:width/2,),
                    ],
                  ),
                  onTap: () {
//                    Get.to(Driverhome());
                  },
                ),
              ],
            ),
          ),
        ],
      ),
    );
  }
}
